package com.wyzz.hr.util.output;

import java.awt.Color;
import java.util.ArrayList;

public class StatisticBgColor {

	public StatisticBgColor() {
	}

	protected static void setColorList() {
		if (colorList.isEmpty()) {
			Color color0 = new Color(0x6396ef);
			colorList.add(color0);
			Color color1 = new Color(0xffef08);
			colorList.add(color1);
			Color color2 = new Color(0x6bd373);
			colorList.add(color2);
			Color color3 = new Color(0xf78673);
			colorList.add(color3);
			Color color4 = new Color(0xcc99ff);
			colorList.add(color4);
		}
	}

	public static Color getBgColor(int layer) {
		if (colorList.isEmpty())
			setColorList();
		int size = colorList.size();
		if (layer < size)
			return (Color) colorList.get(layer);
		else
			return (Color) colorList.get(size - 1);
	}

	private static final java.util.List colorList = new ArrayList();

}
